package com.blog.bean.vo;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author 任浩
 * @version 1.0
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class MessageVO implements Serializable {

    private Integer id;  //信息的id
    private Integer fromId;
    private Integer toId;
    private String conversationId;
    private String content;
    private Integer status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    private Integer count; //当前聊天的数量。
    private Integer unreadMessageCount; //未读的信息。
    private Integer linkData;

    //用户的信息。
    private String username;
    private String password;
    private String salt;
    private String email;
    private String activationCode;  //
    private String headerUrl;  //头像地址

    //代表消息是不是当前用户的。
    private Integer isCurentMsg;
}
